package com.test.cities.vo;

import java.io.Serializable;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("TEST_BOOKS")
public class Book implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@TableId(value = "ID", type=IdType.INPUT)
	private Long id;
	@TableField("code")
	private String code;
	@TableField("name")
	private String name;
	@TableField("author")
	private String author;
	@TableField("publishDate")
	private LocalDate publishDate;
	@TableField("createTime")
	private LocalDate createTime;
	@TableField("updateTime")
	private LocalDate updateTime;


	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public LocalDate getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(LocalDate publishDate) {
		this.publishDate = publishDate;
	}
	public LocalDate getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDate createTime) {
		this.createTime = createTime;
	}
	public LocalDate getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(LocalDate updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "Book [id=" + id + ", code=" + code + ", name=" + name + ", author=" + author + ", publishDate="
				+ publishDate + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
	public Book(Long id, String code, String name, String author, LocalDate publishDate, LocalDate createTime,
			LocalDate updateTime) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.author = author;
		this.publishDate = publishDate;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	public Book() {
		super();
	}


}
